package servletUser;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Administrator on 2020/12/4.
 */
public class Servlet2 extends HttpServlet{

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        //查看参数
        String username = req.getParameter("username");
        System.out.println("在servlet2中查看材料："+username);

        //查看是否有章
        Object key1 = req.getAttribute("key1");
        System.out.println("是否有章："+key1);


        //处理业务
        System.out.println("处理业务！");


    }
}
